import Layout from '@/layout/index'

export default [
  {
    path: '/data',
    sort: 1,
    meta: {
      title: '数据配置',
      icon: 'setting',
      auth: 'SiteConfig'
    },
    component: Layout,
    redirect: { name: 'DataConfig' },
    children: [
      {
        path: 'config',
        name: 'DataConfig',
        meta: {
          title: '站点配置',
          auth: 'SiteConfig'
        },
        component: () => import('../views/data/config')
      },
      {
        path: 'mailtest',
        name: 'DataMailtest',
        meta: {
          title: '邮件发信测试',
          auth: 'Mailtest'
        },
        component: () => import('../views/data/config/mailtest')
      },
      {
        path: 'banner',
        name: 'DataBanner',
        meta: {
          title: '首页幻灯片',
          auth: 'Swiper'
        },
        component: () => import('../views/data/banner')
      },
      {
        path: 'link',
        name: 'DataLink',
        meta: {
          title: '友情链接',
          auth: 'SiteLink'
        },
        component: () => import('../views/data/link')
      }
    ]
  },
]
